<!DOCTYPE html>
<html lang="">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
  <link rel="icon" href="<%= BASE_URL %>favicon.ico">
  <title>
    <%= htmlWebpackPlugin.options.title %>
  </title>

  <script src="//at.alicdn.com/t/font_2482822_jes0yvf0dkh.js"></script>
  <script src="https://eqcn.ajz.miesnfu.com/wp-content/plugins/wp-3d-pony/live2dw/lib/L2Dwidget.min.js"></script>
</head>

<body>
  <noscript>
    <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
        Please enable it to continue.</strong>
  </noscript>
  <div id="app"></div>
  <!-- built files will be auto injected -->
</body>
<script>
  console.log(L2Dwidget)
  L2Dwidget.init({
    "model": {
      // jsonPath: "https://unpkg.com/live2d-widget-model-koharu@1.0.5/assets/koharu.model.json",
      jsonPath: "./live2d/rem/model.json",
      // jsonPath: "./live2d/platelet-2/model.json",
      // jsonPath: "./live2d/umaru/model.json",
      "scale": 1
    },
    "display": {
      "position": "right", //看板娘的表现位置
      "width": 150,  //小萝莉的宽度
      "height": 300, //小萝莉的高度
      "hOffset": 0,//小萝莉的X偏移量
      "vOffset": -20//小萝莉的Y偏移量
    },
    "mobile": {
      "show": false,
      "scale": 0.5
    },
    "react": {
      "opacityDefault": 0.7,//小萝莉的透明度
      "opacityOnHover": 0.2
    },
    "dialog": {
      "enable": true,
      "script": {
        //每20s，显示一言（调用一言Api返回的句子）
        'every idle 20s': '$hitokoto$',
        //触摸到class='star'对象
        'hover .star': '星星在天上而你在我心里 (*/ω＼*)',
        //触摸到身体
        'tap body': '害羞⁄(⁄ ⁄•⁄ω⁄•⁄ ⁄)⁄',
        //触摸到头部
        'tap face': '~~'
      }
    }

  });
</script>

</html>